﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace CatchProcessing
{
    public static class OnScreenKeyboard
    {
        /// <summary>
        /// PID of last spawned OSK
        /// </summary>
        public static int OSKPid = -1;
        /// <summary>
        /// User clicked On-screen keyboard
        /// </summary>
        public static void OnScreenKeyboardToolStripMenuItem_Click(object sender, EventArgs e)
        {
            System.Diagnostics.Process OSK = System.Diagnostics.Process.Start(System.IO.Path.Combine(Application.StartupPath, "RunOSK.exe"));
            OSK.WaitForExit();
            OSKPid = OSK.ExitCode;
        }
    }
}
